//
//  JCEmotion.swift
//  SinaWeibo_18
//
//  Created by mac on 15/11/4.
//  Copyright © 2015年 cz. All rights reserved.
//

import UIKit

class JCEmotion: NSObject {
/*
    <key>chs</key>
    <string>[马到成功]</string>
    <key>cht</key>
    <string>[馬到成功]</string>
    <key>gif</key>
    <string></string>
    <key>png</key>
    <string>d_madaochenggong.png</string>
    <key>type</key>
    <string>0</string>
    */
    //当前表情的字符描述
    var chs: String?
    //繁体描述
    var cht: String?
    //当前表情动态图片名
    var gif: String?
    //当前表情 图片名
    var png: String?
    //当前表情类型  0是图片表情  1是emoji表情
    var type: Int = 0
    //emoji表情的code
    var code: String?
    //前缀path  --->  Emotions/default
    var prepath: String?
    
    init(dict:[String: AnyObject]) {
        super.init()
        setValuesForKeysWithDictionary(dict)
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
    }
    
    override var description: String {
        let keys = ["chs"]
        return dictionaryWithValuesForKeys(keys).description
    }
}
